<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.firstsoft.firstframe.admin.PropertyFile"%>
<%@ page import="cn.firstsoft.firstframe.admin.XmlFile"%>
<%@ page import="cn.firstsoft.firstframe.admin.MailTest"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="../common.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title></title>
    <link href="../style.css" type="text/css" rel=stylesheet>
  </head>
  
  <body>
  	
    <%
    	request.setCharacterEncoding("utf-8");
    	String smtp = request.getParameter("smtp")==null?"":request.getParameter("smtp");
    	String sender = request.getParameter("sender")==null?"":request.getParameter("sender");
    	String user = request.getParameter("user")==null?"":request.getParameter("user");
    	String pwd = request.getParameter("pwd")==null?"":request.getParameter("pwd");
    	MailTest mail = new MailTest();
    	boolean flag = mail.send(smtp,sender,sender,user,pwd);
    %>
   <table width="100%" align="center">
	  		<TR>
				  <TH class=listViewPaginationTdS1  align=left colSpan=1>
				   邮件测试结果</TH></TR>
			<TR>	    	
			<tr>
				<td>
					<% if(flag){%>
						邮件发送测试成功！<br/>						
					<%}else{%>
						邮件发送测试失败，请检查你的设置！
					<%}%>
					<p/>
					<a href="setting_edit.jsp?type=mail">点此返回</a>
				</td>
			</tr>
   </table>
    	
    
   
    
  </body>
</html>
